package com.xuyoupeng.springlearn.bean.aop;

import com.xuyoupeng.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @author xuyoupneg
 * @description TODO
 * @date 2024/5/13 11:12
 */
@Component
public class CustomerDao {

    private static Map<String, String> customerInfo = new HashMap<>();

    static {
        customerInfo.put("1", "高木");
        customerInfo.put("2", "西片");
    }

    public String queryCustomerName(String uid) {
        return customerInfo.get(uid);
    }
}
